/*
 * @Descripttion: 404 页面
 * @version: 
 * @Author: jwZhang
 * @Date: 2020-04-30 11:24:53
 * @LastEditors: jwZhang
 * @LastEditTime: 2020-05-06 22:54:22
 */
import 'package:flutter/material.dart';

class UndefinedPage extends StatelessWidget {
  final Map<String, List<String>> parameters;

  const UndefinedPage({Key key, this.parameters}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    print(this.parameters);
    return Scaffold(
      body: GestureDetector(
        onTap: () {
          if (Navigator.of(context).canPop())
            Navigator.of(context).pop();
          else
            Navigator.of(context).pushNamed('/login');
        },
        child: Center(
          child: Text('页面未找到\n点击返回'),
        ),
      ),
    );
  }
}
